// import Cookies from 'js-cookie'
// import website from '@/config/website'
// const Authorization = website.Authorization
// var inFifteenMinutes = new Date(new Date().getTime() + website.tokenTime * 1000);
// export function getToken () {
//   return Cookies.get(Authorization)
// }
//
// export function setToken (token) {
//   return Cookies.set(Authorization, token, { expires: inFifteenMinutes })
// }
//
// export function removeToken () {
//   return Cookies.remove(Authorization)
// }

import website from '@/config/website'
import {getStore, setStore} from '@/utils/store'

const Authorization = website.Authorization;

export function getToken() {
  return getStore({name: Authorization});
}

export function setToken(token) {
  setStore({name: Authorization, content: token})
}

export function removeToken() {
  setStore({name: Authorization, content: ""})
}